package demo03constructer;

import java.util.Random;

public class Demo01Random {
    public static void main(String[] args) {
        Random e=new Random(77777);
        System.out.println(e.nextInt());

        Random e1=new Random();
        int num=e1.nextInt(10);//0~9左闭右开
        System.out.println(num);
        System.out.println();

    }
}
